FROM php:7.3-fpm-alpine
# 设置apk镜像源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# 安装nginx
RUN apk update --no-cache
RUN apk add nginx --nocache
# 暴露端口
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]